﻿<dxc:DXWindow x:Class="ChatApp.Client.ThemBan"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
        xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/core"
        xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
        xmlns:dxd="http://schemas.devexpress.com/winfx/2008/xaml/docking"
		xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
        Title="ThemBan" Height="489" Width="350"
         WindowStyle="ToolWindow" ResizeMode="NoResize" xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol">
    <dxc:DXWindow.Background>
        <ImageBrush ImageSource="/ChatApp.Client;component/Images/Untitled1.png" />
    </dxc:DXWindow.Background>
    <dxc:DXWindow.ContextMenu>
        <ContextMenu />
    </dxc:DXWindow.ContextMenu>
    <Window.Resources>
        <Style TargetType="{x:Type Label}">
            <Setter Property="VerticalAlignment" Value="Center" ></Setter>
            <Setter Property="Margin" Value="3,3" ></Setter>
        </Style>
        <Style TargetType="{x:Type dxe:TextEdit}">
            <Setter Property="Margin" Value="2,2" ></Setter>
        </Style>
        <Style TargetType="{x:Type dxe:PasswordBoxEdit}">
            <Setter Property="Margin" Value="2,2" ></Setter>
        </Style>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="10"></RowDefinition>
            <RowDefinition Height="70"></RowDefinition>
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition Height="35"></RowDefinition>
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition Height="35"></RowDefinition>
            
            
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="308"></ColumnDefinition>
            <ColumnDefinition Width="20*" />
        </Grid.ColumnDefinitions>
        <Label Content="Kết bạn với tài khoản" Grid.Row="2" Height="27"  FontSize="14" FontWeight="DemiBold" Margin="11,5,29,34" Foreground="#B2E7F7" Grid.RowSpan="2" />
        <dxe:TextEdit Grid.Row="3" Grid.Column="0" Name="txtTenDangNhap" Height="30" Margin="13,1,17,3" FontSize="14" FontWeight="DemiBold" 
                      AllowNullInput="True" CausesValidation="False" InvalidValueBehavior="AllowLeaveEditor" Validate="txtTenDangNhap_Validate"/>
        <Button Name="btnThemMoi" Grid.Row="5" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="167" Height="30" FontSize="14" Margin="13,0,0,0" Background="#FFCBDEFC" BorderBrush="{x:Null}" Foreground="#9B000000"  OpacityMask="{x:Null}" Click="btnThemMoi_Click">Thêm mới</Button>
        <Button Name="btnDong" Grid.Row="5" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="87" Height="30" FontSize="14" Margin="0,0,15,0" Background="#FFCBDEFC" BorderBrush="{x:Null}" Foreground="#9B000000"  OpacityMask="{x:Null}" Click="btnDong_Click">Đóng</Button>
        <Label Content="  Thêm bạn vào danh sách" HorizontalAlignment="Stretch" VerticalAlignment="Top" Background="White" FontSize="20" FontWeight="Bold" Foreground="#00AFF0" Height="48" Grid.Row="1" Grid.ColumnSpan="2" Margin="0,0,0,0" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" />
    </Grid>
</dxc:DXWindow>
